#!/usr/bin/env bash
export CGO_ENABLED=0
export GOOS=windows
export GOARCH=386
mkdir -p win32
go build -ldflags "-H=windowsgui -s"
mv web2.exe win32/
cd utils/quitweb
go build -ldflags "-H=windowsgui -s"
mv quitweb.exe ../../win32
cd ../setadmin
go build -ldflags "-H=windowsgui -s"
mv setadmin.exe ../../win32/
cd ../execsqls
go build -ldflags "-H=windowsgui -s"
mv execsqls.exe ../../win32/
